package com.yty.product.exception;

public class ProductRuntimeException extends RuntimeException {
    public ProductRuntimeException(String message) {
        super(message);
    }

    public ProductRuntimeException(String messagePattern, Object... arg) {
        this(String.format(messagePattern.replaceAll("\\{}", "%s"), arg));
    }
}
